package klex.eserver.biz.pricemanager.channel.impl;

import java.util.Date;

import klex.eserver.biz.pricemanager.PriceManagerBiz;
import klex.eserver.biz.pricemanager.channel.RemoteBiz;
import klex.eserver.common.PageUtil;
import klex.eserver.entity.OnlineClientPRemote;
import klex.eserver.javabean.RemoteBean;

public class RemoteBizImpl extends PriceManagerBiz implements RemoteBiz {

	public Integer addRemoteForChannel(OnlineClientPRemote remote) {
		remote.setPRemoteAddDate(new Date());
		return remoteDao.addRemoteForChannel(remote);
	}

	public void delRemote(int[] ids) {
		// TODO Auto-generated method stub
		remoteDao.delRemote(ids);
	}

	public PageUtil<RemoteBean> findRemoteByChannel(String channelNumber,
			String countryCode, String areaCode, int pageNo, int pageSize,String orderField,String orderDirection) {
		// TODO Auto-generated method stub
		return remoteDao.findRemoteByChannel(channelNumber, countryCode,
				areaCode, pageNo, pageSize,orderField,orderDirection);
	}

	public RemoteBean findRemoteByID(Integer remoteId) {
		// TODO Auto-generated method stub
		return remoteDao.findRemoteByID(remoteId);
	}

	public void modifyRemote(OnlineClientPRemote remote) {
		remote.setPRemoteAddDate(new Date());
		remoteDao.modifyRemote(remote);
	}

}
